<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		
		<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
 
		<title>使用</title>
		<script>
			function showImg(){
				$("#myimg").show();	
			}
			function hideImg(){
				$("#myimg").hide();
				
			}
		</script>
		
	</head>
	<body>
		<img id="myimg" src="img/3.jpg" />
		<br />
		<button onclick="showImg">显示图片</button>
		<button onclick="hideImg">隐藏图片</button>
	</body>
</html>
